package StringMethods;

public class method1 {
    public static void main(String[] args) {
        /*
        * String 中内容进行比较
        * equals
        * */
//        String s1 = "abc";
//        String s2 = new String("abc");
//        System.out.println(s1 == s2); // false
//        System.out.println(s1.equals(s2)); // true


        String s11 = "Abc";
        String s22 = new String("abc");
        System.out.println(s11.equals(s22)); // false
        System.out.println(s11.equalsIgnoreCase(s22)); // true
    }
}
